train : dataframe.o train.o edit.o scipy.o
	g++ -std=c++11 -o train_exe dataframe.o train.o edit.o scipy.o xgboost/lib/libxgboost.a xgboost/rabit/lib/librabit.a xgboost/dmlc-core/libdmlc.a -fopenmp

predict : predict.o dataframe.o edit.o scipy.o
	g++ -std=c++11 -o predict_exe predict.o dataframe.o edit.o scipy.o xgboost/lib/libxgboost.a xgboost/rabit/lib/librabit.a xgboost/dmlc-core/libdmlc.a -fopenmp
	
predict.o : predict.cpp
	g++ -std=c++11 -c predict.cpp -o predict.o -Ixgboost/include -Ixgboost/rabit/include
		
dataframe.o : DataFrame.cpp
	g++ -std=c++11 -c DataFrame.cpp -o dataframe.o 
	
train.o : train.cpp
	g++ -std=c++11 -c train.cpp -o train.o -Ixgboost/include -Ixgboost/rabit/include

edit.o : CEditDistance.cpp
	g++ -std=c++11 -c CEditDistance.cpp -o edit.o

scipy.o : CScipyDistance.cpp
	g++ -std=c++11 -c CScipyDistance.cpp -o scipy.o
	
clean :
	rm *.o -rf